package com.xiaobai.model.convertor.system;

import com.xiaobai.model.entity.system.Dept;
import com.xiaobai.model.vo.system.dept.DeptTreeVO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingConstants;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = MappingConstants.ComponentModel.SPRING)
public interface DeptConvertor {
    DeptConvertor INSTANCE = Mappers.getMapper(DeptConvertor.class);

    DeptTreeVO toTreeVO(Dept dept);

    List<DeptTreeVO> toTreeVOList(List<Dept> deptList);

}
